package com.tiger.communal.mapper;

import java.util.List;

import com.tiger.communal.domain.HydropowerSubmeterAlter;
import org.springframework.stereotype.Component;


/**
 * 水电分历史Mapper接口
 *
 * @author standard
 * @date 2022-10-14
 */
@Component
public interface HydropowerSubmeterAlterMapper {
    /**
     * 查询水电分历史
     *
     * @param id 水电分历史主键
     * @return 水电分历史
     */
    public HydropowerSubmeterAlter selectHydropowerSubmeterAlterById(Long id);

    /**
     * 查询水电分历史列表
     *
     * @param hydropowerSubmeterAlter 水电分历史
     * @return 水电分历史集合
     */
    public List<HydropowerSubmeterAlter> selectHydropowerSubmeterAlterList(HydropowerSubmeterAlter hydropowerSubmeterAlter);

    /**
     * 新增水电分历史
     *
     * @param hydropowerSubmeterAlter 水电分历史
     * @return 结果
     */
    public int insertHydropowerSubmeterAlter(HydropowerSubmeterAlter hydropowerSubmeterAlter);

    /**
     * 修改水电分历史
     *
     * @param hydropowerSubmeterAlter 水电分历史
     * @return 结果
     */
    public int updateHydropowerSubmeterAlter(HydropowerSubmeterAlter hydropowerSubmeterAlter);

    /**
     * 删除水电分历史
     *
     * @param id 水电分历史主键
     * @return 结果
     */
    public int deleteHydropowerSubmeterAlterById(Long id);

    /**
     * 批量删除水电分历史
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHydropowerSubmeterAlterByIds(Long[] ids);

    public HydropowerSubmeterAlter selectNum(Long id);

    }
